package com.project.forlearning.dao;

import com.project.forlearning.pojo.User;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface BackUserMapper {

    //查询单个用户
    User findUser(@Param("userId") Integer userId);

    //查询所有用户
    List<User> findAllUser();

    //删除用户信息
    boolean deleteUser(@Param("userId") Integer userId);
}
